<script src="/bower_components/jquery/dist/jquery.min.js"></script>
<!-- sidebar: style can be found in sidebar.less -->
<section class="sidebar">
  <!-- Sidebar user panel -->
  <div class="user-panel">
    <div class="pull-left image">
      <img id="head" src="/dist/img/user3-128x128.jpg" class="img-circle" alt="User Image">
    </div>
    <div class="pull-left info">
      <p id="nickname">admin</p>
      <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
    </div>
  </div>
  <!-- 侧边菜单-->
  <ul class="sidebar-menu" data-widget="tree">

      <li><a href="home.html"><i class="fa fa-line-chart"></i> <span>平台概况</span></a></li>
      <li><a href="adsZoneList.html"><i class="fa fa-buysellads"></i> <span>我的广告</span></a></li>
      <li><a href="siteList.html"><i class="fa fa-opera"></i> <span>我的网站</span></a></li>
      <li><a href="myPayLogRecord.html"><i class="fa fa-cc-visa"></i> <span>支付记录</span></a></li>

  </ul>
</section>
<script src="/dist/js/store.min.js"></script>
<script>
    $(function () {
        var id = store.get("status");
        var user_info = store.get("user_info");
        if(user_info == null){
            window.location.href = "/pages/channel/login.html";
        } else {
            $("#nickname").html(user_info.wmname);
            // $("#head").attr("src", user_info.head);
        }
        if(id != null){
            $("#"+id).addClass("active").parent().parent().addClass("active treeview");
            store.remove("status");
        }
    });
    function saveStatus(id) {
        store.set("status",id);
    }
</script>




